package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.system.domain.WmsWarehouseBase;
import com.ruoyi.system.domain.vo.SelectVo;
import com.ruoyi.system.domain.vo.TreeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 仓库基础信息Mapper接口
 *
 * @author ruoyi
 * @date 2025-06-12
 */
public interface WmsWarehouseBaseMapper
{
    /**
     * 查询仓库基础信息
     *
     * @param warehouseId 仓库基础信息主键
     * @return 仓库基础信息
     */
    public WmsWarehouseBase selectWmsWarehouseBaseByWarehouseId(Long warehouseId);

    /**
     * 查询仓库基础信息列表
     *
     * @param wmsWarehouseBase 仓库基础信息
     * @return 仓库基础信息集合
     */
    public Page<WmsWarehouseBase> selectWmsWarehouseBaseList(@Param("page")Page<WmsWarehouseBase> page,@Param("bo") WmsWarehouseBase wmsWarehouseBase);

    /**
     * 新增仓库基础信息
     *
     * @param wmsWarehouseBase 仓库基础信息
     * @return 结果
     */
    public int insertWmsWarehouseBase(WmsWarehouseBase wmsWarehouseBase);

    /**
     * 修改仓库基础信息
     *
     * @param wmsWarehouseBase 仓库基础信息
     * @return 结果
     */
    public int updateWmsWarehouseBase(WmsWarehouseBase wmsWarehouseBase);

    /**
     * 删除仓库基础信息
     *
     * @param warehouseId 仓库基础信息主键
     * @return 结果
     */
    public int deleteWmsWarehouseBaseByWarehouseId(Long warehouseId);

    /**
     * 批量删除仓库基础信息
     *
     * @param warehouseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWmsWarehouseBaseByWarehouseIds(Long[] warehouseIds);

    List<SelectVo> getWarehouseSelect();

    /**
     * 查询仓库信息的树形结构
     * @return
     */
    public List<TreeVo> queryWarehouseTree();
}
